package com.tjetc.controller;

import com.tjetc.common.Resp;
import com.tjetc.entity.Appointment;
import com.tjetc.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("room")
public class RoomController {

    @Autowired
    private RoomService roomService;

    @RequestMapping("getAll")
    public Resp getAllRoom(){
        return roomService.getAllRoom();
    }

}
